package com.dubbo.soa.spring.parse;

import com.dubbo.soa.spring.configBean.Protocol;
import com.dubbo.soa.spring.configBean.Reference;
import com.dubbo.soa.spring.configBean.Registry;
import com.dubbo.soa.spring.configBean.Service;
import org.springframework.beans.factory.xml.NamespaceHandlerSupport;
/**
 * @Description TODO
 * @ClassName   SOANamespaceHandler
 * @Date        2018年5月24日 上午10:03:20
 * @Author      sunne
 *
 * 这个类是用来注册标签解析类的
 */
public class SOANamespaceHandler extends NamespaceHandlerSupport {
    public void init() {
        this.registerBeanDefinitionParser("registry",new RegistryBeanDefinitionParse(Registry.class));
        this.registerBeanDefinitionParser("reference",new ReferenceBeanDefinitionParse(Reference.class));
        this.registerBeanDefinitionParser("protocol",new ProtocolBeanDefinitionParse(Protocol.class));
        this.registerBeanDefinitionParser("service",new ServiceBeanDefinitionParse(Service.class));
    }
}
